import { createRouter, createWebHistory } from 'vue-router'
import Main from 'components/main'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Main
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

router.beforeEach((to,from)=>{
  document.title = '图片压缩'
})

export default router
